
printf = function(s,...)
           return io.write(s:format(...))
         end -- function

function love.load()
  love.filesystem.setIdentity("kenoclone")
  require("keno")
  
  -- Load ball font
  bbfont = love.graphics.newImage("balls/font1.png")
  bfont = love.graphics.newImageFont( bbfont, "1234567890" )

	love.graphics.setFont(bfont)
  
  Game = Keno.create()
  Game:initialise()
end

function love.keypressed(k)
    if k == 's' then Game:startgame() end
    if k == 'q' then
      love.event.push('q') -- quit the game
    end 
end

function love.update(dt)
  Game:process()
end

function love.draw()
  Game:render()
end